package com.prb.proivder.one.config;

import com.prb.proivder.one.entity.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AppConfig {

    @Bean(name="person1")
    public Person person() {

        Person person = new Person();
        person.setName("prqb");
        return person;
    }


    @Bean(name="person1")
    public Person person1() {

        Person person = new Person();
        person.setName("tomcat");
        return person;
    }
}
